// ------------------------------------------------------------------------------------------------- 
// <copyright file="SA1108BlockStatementsMustNotContainEmbeddedComments.cs" company="StyleCop for ReSharper Development Team">
//   Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>Defines the SA1108BlockStatementsMustNotContainEmbeddedComments type.</summary>
//-------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.TestProject.Readability
{
    #region Using Directives

    using System;

    #endregion

    /// <summary>
    /// Example file for SA1108BlockStatementsMustNotContainEmbeddedComments.
    /// </summary>
    [Serializable]
    public class SA1108BlockStatementsMustNotContainEmbeddedComments
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the SA1108BlockStatementsMustNotContainEmbeddedComments class.
        /// </summary>
        public SA1108BlockStatementsMustNotContainEmbeddedComments() // don't embed comments here on constructor line.
        {
            var value1 = "value1";
            var value2 = "value2";
            var value3 = "value3";
            Console.WriteLine(string.Concat(value1, value2, value3));
        }

        /// <summary>
        /// Initializes a new instance of the SA1108BlockStatementsMustNotContainEmbeddedComments class.
        /// </summary>
        public SA1108BlockStatementsMustNotContainEmbeddedComments(string value1)
        // don't embed comments here.
        {
            var value2 = "value2";
            var value3 = "value3";
            Console.WriteLine(string.Concat(value1, value2, value3));
        }

        #endregion

        #region Public Methods

        /// <summary>
        /// </summary>
        /// <param name="arg1">
        /// The arg 1.
        /// </param>
        /// <returns>
        /// </returns>
        public bool Method1(string arg1)
        {
            if (string.IsNullOrEmpty(arg1)) // comments not allowed inside block 1108 on line with if.
            {
                return false;
            }

            return true;
        }

        /// <summary>
        /// </summary>
        /// <param name="arg1">
        /// The arg 1.
        /// </param>
        /// <returns>
        /// </returns>
        public bool Method2(string arg1)
        {
            if (string.IsNullOrEmpty(arg1))
            // comments not allowed inside block 1108.
            {
                return false;
            }

            return true;
        }

        #endregion
    }
}